package com.woniuxy.enjoylife.entity.dto;

import com.woniuxy.enjoylife.entity.RecentComment;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@Data
@Accessors(chain = true)
public class RecentDto implements Serializable {
//    private Recent recent;
//    private List<RecentComment> recentComment;
//    private RecentAgree recentAgree;
//    private User user;

    //用户
    private String ownerName;

    //动态
    private Integer recentId;
    private LocalDateTime time;
    private String content;
    private String image;
    private Boolean isUpdate;

    //点赞
    private int agreeNum;
    private boolean isAgree;

    //装所有评论
    List<RecentCommentDto2> commentList;

    //用于查看是否是自己的动态
    private int uid;
}
